package edu.gdcc.linearList.stack;

public class StackXApp {
	public static void main(String[] args) {
		StackX stack = new StackX(4);
		stack.push(12);
		stack.push(89);
		stack.push(88);
		stack.push(90);
		System.out.println(stack.peek());
		stack.currentCapacity();
		System.out.println(stack.pop());
		stack.push(23);
		while(!stack.isEmpty()){
			System.out.println(stack.pop());
		}
	}
}
